package com.yfbao.horizon.docker.service;


import com.yfbao.horizon.docker.entity.TrxTask;
import lombok.extern.slf4j.Slf4j;
import org.springframework.cache.annotation.CacheConfig;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;

@Service
@CacheConfig(cacheNames = "trxTask")
@Slf4j
public class TrxTaskService {

    @Cacheable
    public TrxTask selectById(Long id){
        TrxTask task =new TrxTask();
        task.setTrxId(id);
        task.setMethod("aaa");
        task.setParamData("bbb");
        return task;
    }
}
